/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VolPro.Entity.SystemModels;

namespace VolPro.Entity.DomainModels
{
    [Entity(TableCnName = "驱动连接",TableName = "commundriver",DBServer = "MdcDbContext")]
    public partial class commundriver:MdcEntity
    {
        /// <summary>
       ///标签连接Id
       /// </summary>
       [Key]
       [Display(Name ="标签连接Id")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string TagConnId { get; set; }

       /// <summary>
       ///驱动名称
       /// </summary>
       [Display(Name ="驱动名称")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string DriverCode { get; set; }

       /// <summary>
       ///驱动地址
       /// </summary>
       [Display(Name ="驱动地址")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string IpAddress { get; set; }

       /// <summary>
       ///状态 -1:停用  0:维护  1:使用
       /// </summary>
       [Display(Name ="状态 -1:停用  0:维护  1:使用")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int Status { get; set; }

       /// <summary>
       ///连接类型 0:OPC 1:MQTT 2:Mc 3:S7 4:Modbus
       /// </summary>
       [Display(Name ="连接类型 0:OPC 1:MQTT 2:Mc 3:S7 4:Modbus")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public string DriverType { get; set; }

       /// <summary>
       ///检查通讯连接的标签
       /// </summary>
       [Display(Name ="检查通讯连接的标签")]
       [MaxLength(64)]
       [Column(TypeName="nvarchar(64)")]
       [Editable(true)]
       public string PlugTag { get; set; }

       /// <summary>
       ///创建用户名
       /// </summary>
       [Display(Name ="创建用户名")]
       [MaxLength(50)]
       [Column(TypeName="nvarchar(50)")]
       [Editable(true)]
       public string UserName { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime UpdateTime { get; set; }

       /// <summary>
       ///备注
       /// </summary>
       [Display(Name ="备注")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       [Editable(true)]
       public string Memo { get; set; }

       
    }
}